export const USER_ROLE = {
  USER: 'user',
  ADMIN: 'admin',
  FARMER: 'farmer',
  BAN: 'ban'
} as const

export type UserRole = typeof USER_ROLE[keyof typeof USER_ROLE]

// 角色显示文本
export const USER_ROLE_TEXT = {
  [USER_ROLE.USER]: '用户',
  [USER_ROLE.ADMIN]: '管理员',
  [USER_ROLE.FARMER]: '农户',
  [USER_ROLE.BAN]: '被封号'
} as const

// 角色标签颜色
export const USER_ROLE_COLOR = {
  [USER_ROLE.USER]: 'green',
  [USER_ROLE.ADMIN]: 'blue',
  [USER_ROLE.FARMER]: 'orange',
  [USER_ROLE.BAN]: 'red'
} as const 